package app.modules.security.dto.web.role;

import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author mh.z
 */
@Schema(title = "角色的保存信息")
public class WebRoleSaveDTO {

    @Length(max = 50)
    @NotEmpty
    @Schema(title = "角色代码")
    private String roleCode;

    @Length(max = 20)
    @NotEmpty
    @Schema(title = "角色名称")
    private String roleName;

    @Schema(title = "生效标志")
    private Boolean effectiveFlag;

    @Schema(title = "生效标志的描述")
    private String effectiveFlagDesc;

    @Length(max = 200)
    @Schema(title = "备注")
    private String remark;

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Boolean getEffectiveFlag() {
        return effectiveFlag;
    }

    public void setEffectiveFlag(Boolean effectiveFlag) {
        this.effectiveFlag = effectiveFlag;
    }

    public String getEffectiveFlagDesc() {
        return effectiveFlagDesc;
    }

    public void setEffectiveFlagDesc(String effectiveFlagDesc) {
        this.effectiveFlagDesc = effectiveFlagDesc;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}
